package io.tim.mvc.util;

import java.util.HashMap;
import java.util.Map;

/**
 * 一个 Java Bean，存储了与业务处理相关的信息，包括业务对应的实例化 ActionForm，业务处理的具体 Action， action
 * 处理完毕业务之后的数据或显示流转方向 path，即某个 url 等。
 * 
 * @author Zhang Nan
 * @since 2017/02/21
 *
 */
public class XmlBean {

	public XmlBean() {

	}

	private String beanName = "";
	private String formClass = "";
	private String actionClass = "";
	private String path = "";

	private Map<String, String> actionForward = new HashMap<String, String>();

	public String getBeanName() {
		return beanName;
	}

	public void setBeanName(String beanName) {
		this.beanName = beanName;
	}

	public String getFormClass() {
		return formClass;
	}

	public void setFormClass(String formClass) {
		this.formClass = formClass;
	}

	public String getActionClass() {
		return actionClass;
	}

	public void setActionClass(String actionClass) {
		this.actionClass = actionClass;
	}

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public Map<String, String> getActionForward() {
		return actionForward;
	}

	public void setActionForward(Map<String, String> actionForward) {
		this.actionForward = actionForward;
	}

	@Override
	public String toString() {
		return "XmlBean: [beanName=" + beanName + ", formClass=" + formClass + ", actionClass=" + actionClass
				+ ", path=" + path + ", actionForward=" + actionForward + "]";
	}

}
